package com.qipay.pay;

import com.qipay.pay.entity.CpTradeCloseRequest;
import com.qipay.pay.entity.CpTradeQueryRequest;
import com.qipay.security.jwt.JWTUser;
import org.springframework.transaction.annotation.Transactional;

import java.util.Map;

public interface TradeService {

    @Transactional
    Map<String, Object> tradeQuery(
            CpTradeQueryRequest entity,
            JWTUser loggedUser) throws Exception;

    @Transactional
    Map<String,Object> tradeClose(CpTradeCloseRequest bean, JWTUser user) throws Exception;
}
